package org.dreamwork.jasmine2.editor.ckeditor.controls;

import org.dreamwork.jasmine2.web.IWebControl;
import org.dreamwork.jasmine2.web.controls.Literal;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 12-7-18
 * Time: 下午4:38
 */
public class CKEditorToolbar extends AbstractCKEditorConfigControl {
    @Override
    public void addControl (IWebControl control) {
        if (control instanceof Literal) {
            Literal literal = (Literal) control;
            editor.setToolbar ((String) literal.getInnerHTML ());
        }
    }
}